#include "TaskTest.h"
#include <iostream>
#include <thread>
#include "Logger.h"

using namespace std;

void TaskTest::run()
{
	auto id = this_thread::get_id();
	INFOLOGGER("%d : My Task Run!", *(unsigned int*)&id);
	for (int i = 0; i != 10; i++)
	{
		if (this->mIsExit())
			break;
		cout << "." << flush;
		this_thread::sleep_for(chrono::milliseconds(500));
	}
	INFOLOGGER("%d : My Task Stop!", *(unsigned int*)&id);
}
